//login.ts
import request from "@/api/request";

export interface LoginParams {
  userName: string;
  password: string;
}

export interface LoginApi {
  login: (params: LoginParams) => Promise<any>;
}

const loginApi: LoginApi = {
  login(params) {
    return request.post("/login", params);
  }
};

export default loginApi;
